package com.android.vgongyi.mapper;


import java.net.URLEncoder;

import com.android.vgongyi.common.AppApiPreference;

/**
 * API REST for getting video info.
 * */
public class FeedbackRequest extends BaseRequest{
	

	private String contact;
	private String suggestion;
	private String ip;
	private String os;
	private String version;
	
	public FeedbackRequest(String contact,String suggestion,String ip,String os, String version) {
		this.contact   = contact;
		this.suggestion = suggestion;
		this.ip = ip;
		this.os = os;
		this.version = version;
	}
	
	public String executeToREST() {
		StringBuffer buffer = new StringBuffer();
		buffer.append(String.format(AppApiPreference.FEEDBACK_URL, URLEncoder.encode(contact),URLEncoder.encode(suggestion),ip, os, version));
		
		return buffer.toString();
	}

}
